package tw.com.bean;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.persistence.FieldResult;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class ContractBean {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	public Long id;

	@Persistent
	private String name;

	@Persistent
	private String email;

	@Persistent
	private String address;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public ContractBean(String name, String email, String address) {
		super();
		this.name = name;
		this.email = email;
		this.address = address;
	}

	@Override
	public String toString() {
		return "ContractBean [name=" + name + ", email=" + email + ", address="
				+ address + "]";
	}

}
